import request from '@/utils/request'

// 分页查询明细货品
export const getGoodsDetailsList = params => request.get('/api/goods/pageDetail', { params })

// 分页查询明细货品
export const getGoodsList = params => request.get('/api/goods/page', { params })

// 修改货品管理
export const setGoods = data => request.put('/api/goods', data)

// 删除货品管理
export const delGoods = params => request.delete('/api/goods', { params })

// 新增仓库
export const addGoods = data => request.post('/api/goods', data)

// 查询货品管理
export const queryGoods = id => request.get(`/api/goods/${id}`)

// 查询全部货品管理
export const getAllGoodsList = params => request.get('/api/goods/list', { params })

// 模糊查询货品
export const getVagueGoodsList = params => request.get('/api/goods/vague', { params })
